import request from '../utils/request'

export const getSuggListAPI = (q) => {
  return request.get('/v1_0/suggestion', {
    params: {
      q
    }
  })
}
// 根据搜索关键词和页码值请求搜索结果
export const getSuggResultAPI = (q, page) => {
  return request.get('/v1_0/search', {
    params: { q, page }
  })
}
